package top.kaoshanji.p2ch16b;

import top.kaoshanji.p2ch16a.IWomen;

/**
 * 代码清单-p2ch16b-183页a：父亲类
 * @author kaoshanji
 * ^_^
 * create time 2025/3/23 19:12
 */
public class Father extends Handler {

    // 父亲只处理女儿的请求
    public Father() {
        super(Handler.FATHER_LEVEL_REQUEST);
    }

    // 父亲的答复
    @Override
    protected void response(IWomen women) {
        System.out.println("--------女儿向父亲请示---------");
        System.out.println(women.getRequest());
        System.out.println("父亲的答复：同意");
    }

}
